package com.rd.student.ruanjian.class4.baiyunyao.DAY0728;

abstract class Animal{//抽象类
    public abstract void eat();//吃东西的抽象方法
    public String Name;//名称
    public String healty;//健康值
    abstract class enjoy extends Animal{
        class cat extends Animal{
            public void eyescolor() {
                System.out.println("蓝眼睛猫猫");
            }

            public void miaomiao() {
                System.out.println("猫喵喵叫");
            }

            @Override
            public void eat() {System.out.println("猫爱吃鱼");

            }

            class dog extends Animal{
                    public void furcolor() {//重写父类eat方法
                        System.out.println("好康");
                    }
                    public dog() {}
                    public void show() {
                        System.out.println("狗汪汪叫");
                    }

                @Override
                public void eat() {
                    System.out.println("狗爱吃骨头");
                }
            }

        }
    }
    public void lady() {
        String name ="张女士";
    }
}



//鱼








